package 构造器模式;

public class ConcretBuilder implements Builder {

    private Product product = new Product();

    @Override
    public void field1(String value) {
        product.setFile1(value);
        System.out.println("设置field1的属性值");
    }

    @Override
    public void field2(String value) {
        product.setFile2(value);
        System.out.println("设置field2的属性值");
    }

    @Override
    public void field3(String value) {
        product.setFile3(value);
        System.out.println("设置field3的属性值");
    }

    @Override
    public Product createProduct() {
        return product;
    }

}
